package com.campus.academic.job.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 成绩表
 * </p>
 *
 * @author mwb
 * @since 2024-11-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("grades")
@ApiModel(value="Grades对象", description="成绩表")
public class Grades implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "教师id")
    @TableField("teacher_id")
    private Integer teacherId;

    @ApiModelProperty(value = "学生学号")
    @TableField("student_id")
    private Integer studentId;

    @ApiModelProperty(value = "课程主键id")
    @TableField("course_id")
    private Integer courseId;

    @ApiModelProperty(value = "考试周期")
    @TableField("exam_period")
    private String examPeriod;

    @ApiModelProperty(value = "考试成绩")
    @TableField("exam_score")
    private BigDecimal examScore;

    @ApiModelProperty(value = "平时成绩")
    @TableField("usual_score")
    private BigDecimal usualScore;

    @ApiModelProperty(value = "排名")
    @TableField("ranks")
    private Integer ranks;


}
